package com.designpatterns.decorator;

/**
 * @author Jack
 * @description: 装饰器类
 * @date 2021/10/14 14:03
 */
public abstract class ShapDecorator implements Shape {

    protected Shape shapeDecorator;

    public ShapDecorator(Shape shape) {
        this.shapeDecorator = shape;
    }

    public void draw() {
        this.shapeDecorator.draw();

    }
}
